<?php
/**
 * Intreface DAO
 *
 * @author: http://phpdao.com
 * @date: 2015-05-26 14:36
 */
interface MegaphoneDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return Megaphone 
	 */
	public function load($megaphone);

	/**
	 * Get all records from table
	 */
	public function queryAll($megaphone);
	
	public function megaphone_count($megaphone);
	
	public function searchby_count($megaphone);
	
	public function all_megaphone($megaphone);
	
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllOrderBy($orderColumn);
	
	/**
 	 * Delete record from table
 	 * @param megaphone primary key
 	 */
	public function delete($megaphone_id);
	
	public function delete_megaphone($megaphone);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param Megaphone megaphone
 	 */
	public function insert($megaphone);
	
	/**
 	 * Update record in table
 	 *
 	 * @param Megaphone megaphone
 	 */
	public function update($megaphone);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByMegaphoneDisplayorder($value);

	public function queryByMegaphoneTitle($value);

	public function queryByMegaphoneStarton($value);

	public function queryByMegaphoneExpireon($value);

	public function queryByMegaphoneContent($value);

	public function queryByMegaphoneImage($value);

	public function queryByCreatedDate($value);

	public function queryByUpdatedDate($value);

	public function queryByStatus($value);


	public function deleteByMegaphoneDisplayorder($value);

	public function deleteByMegaphoneTitle($value);

	public function deleteByMegaphoneStarton($value);

	public function deleteByMegaphoneExpireon($value);

	public function deleteByMegaphoneContent($value);

	public function deleteByMegaphoneImage($value);

	public function deleteByCreatedDate($value);

	public function deleteByUpdatedDate($value);

	public function deleteByStatus($value);


}
?>